package xinxin.com.AbstractFactoryPattern.Factory.FactoryDetail;

import xinxin.com.AbstractFactoryPattern.Factory.IFactory;
import xinxin.com.AbstractFactoryPattern.Sql.IDepartment;
import xinxin.com.AbstractFactoryPattern.Sql.IUser;
import xinxin.com.AbstractFactoryPattern.Sql.SqlDetail.AccessDepartment;
import xinxin.com.AbstractFactoryPattern.Sql.SqlDetail.AccessUser;

/**
 * @author ：史鑫鑫
 * @date ：Created in 2019/3/25 20:44
 */
public class AccessFactory implements IFactory {
    public IUser CreateUser() {
        return new AccessUser();
    }

    @Override
    public IDepartment CreateDepartment() {
        return new AccessDepartment();
    }
}
